#coding=utf-8


a=0
with open('homework.txt') as o:
    password=o.readline().strip()
while a < 3:
    usr_password=input('请输入密码')
    if usr_password == password:
        print('密码正确')
    else:
        print('密码错误')
        a += 1